package pt.iscte.pcd.buttonadder;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;

public class RemoveButtonListener implements ActionListener {

	private ButtonAdder app;

	public RemoveButtonListener(ButtonAdder app) {

		this.app = app;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		app.removeButton((JButton) e.getSource());

	}

}
